﻿namespace Twitter
{
	/// <summary>
	/// Main processing API implemented by bots, which is 
	/// invoked for every new direct message received.
	/// </summary>
	public interface IMessageProcessor
	{
		/// <summary>
		/// Processes the message, and specifies whether the next processor should be run.
		/// </summary>
		RunNextProcessor Process(IBotClient client, Message message);
		/// <summary>
		/// Determines whether this processor recognizes the given message.
		/// </summary>
		bool CanProcess(Message message);
	}
}
